home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / anacroz.swf / scripts / __Packages / Item.as < prev    next >
Text File  |  2010-11-09  |  701b  |  45 lines

  1. class Item
  2. {
  3.    function Item(cd, n, p, t, v)
  4.    {
  5.       this.cod = cd;
  6.       this.nome = n;
  7.       this.poder = p;
  8.       this.tipo = t;
  9.       this.valor = v;
  10.       this.equipado = false;
  11.    }
  12.    function equip()
  13.    {
  14.       this.equipado = true;
  15.    }
  16.    function unEquip()
  17.    {
  18.       this.equipado = false;
  19.    }
  20.    function getCod()
  21.    {
  22.       return this.cod;
  23.    }
  24.    function getNome()
  25.    {
  26.       return this.nome;
  27.    }
  28.    function getPoder()
  29.    {
  30.       return this.poder;
  31.    }
  32.    function getValor()
  33.    {
  34.       return this.valor;
  35.    }
  36.    function getTipo()
  37.    {
  38.       return this.tipo;
  39.    }
  40.    function isEquiped()
  41.    {
  42.       return this.equipado;
  43.    }
  44. }
  45.